/*
 * RatingUtils.java
 * business
 *
 * Created by ChenTao on 2016/9/9.
 *
 * Copyright (c) 2016年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.utils;

import com.yidiandao.business.data.bean.Shop;

/** 判定等级的工具 */
public class RatingUtils {

    /** 设置店铺等级 */
    public static String getShopRating(float level) {
        if (level <= Shop.LEVEL_LOW) {
            // 低
            return "-1";
        } else if (level <= Shop.LEVEL_NORMAL) {
            // 中
            return "0";
        } else {
            // 高
            return "1";
        }
    }
}
